﻿/// *******************************
/// 作者：reazhuang 庄星睿
/// 联系方式：reazhuang@outlook.com
/// 文件说明
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ValueObjectDemo
{
      public record Foo
      {
            public Foo(string name , string address , int age) {
                  Name = name;
                  Address = address;
                  Age = age;
            }

            [Display(Name = "姓名")]
            public string Name { get; set; }
            [Display(Name = "地址")]
            public string Address { get; set; }
            [Display(Name = "年龄")]
            public int Age { get; set; }
      }
      public class FooList
      {
            public List<Foo> Foos { get; set; }
            public FooList() {
                  Foos = new List<Foo> {
                        new Foo("李" , "山东" , 28) ,
                        new Foo("王" , "江苏" , 26) ,
                        new Foo("孙" , "北京" , 19) ,
                        new Foo("赵" , "上海" , 28) ,
                        new Foo("李" , "山东" , 28) ,
                  };
            }
      }
}
